<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      template="/web/layout/layoutPrincipal.xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
	
	<ui:define name="title">
		
	</ui:define>
	
	<ui:define name="menu">
		<ui:include src="/web/layout/menus.xhtml" />
	</ui:define>
	
	<ui:define name="body">
					<p:panel style="border-width:0;text-align:center">
						<f:facet name="header">
							<h:outputText value="LICITAÇÕES" />
						</f:facet>
						<p:dataGrid var="licitacao" emptyMessage="Nenhuma licitacao cadastrada" 
							value="#{licitacaoBeanSession.licitacaoList}">
							<p:column>
								<h:panelGrid style="width:100%;border-width:0">
									<h:panelGrid columns="2" style="width:100%;text-align:left">
										<p:panel style="width:100%;border-width:0;text-align:left">
											<p:commandLink style="font-size:20px;font-weight:bold" 
												value="Edital: #{licitacao.edital}" action="licitacaoView.java" ajax="false" >
													<f:setPropertyActionListener target="#{licitacaoBeanSession.licitacaoSelecionada}" 
													value="#{licitacao}" />
											</p:commandLink>
										</p:panel>
										<p:panel style="width:100%;border-width:0;text-align:right">
											<h:outputText style="font-size:14px;font-weight:bold" 
												value="Publicacao: #{licitacao.dataPublicacao}"> 
											</h:outputText>
										</p:panel>
									</h:panelGrid>
									<p:panel style="width:100%;border-width:0;text-align:left">
										<p:commandLink style="font-size:18px" 
											value="Processo: #{licitacao.processo}" action="licitacaoView.java" ajax="false" >
												<f:setPropertyActionListener target="#{licitacaoBeanSession.licitacaoSelecionada}" 
												value="#{licitacao}" />
										</p:commandLink>
									</p:panel>
									<p:panel style="width:100%;border-width:0;text-align:left">
										<h:outputText style="font-size:16px;font-weight:bold" 
											value="Modalidade: #{licitacao.modalidade.nome}" />
									</p:panel>
									<p:panel style="width:100%;border-width:0;text-align:left">
										<h:outputText style="font-size:14px;font-weight:bold" 
											value="Objeto: #{licitacao.objeto}" />
									</p:panel>
								</h:panelGrid>
							</p:column>
						</p:dataGrid>
					</p:panel>
	</ui:define>
</ui:composition>